package cn.unuuc.cwl.order.controller;

import cn.unuuc.cwl.order.model.OrderQo;
import cn.unuuc.cwl.order.service.OrderService;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RequestMapping("order")
@RestController
public class OrderController {


    @Resource
    private OrderService orderService;


    @PostMapping
    public String saveOrder(@RequestBody OrderQo orderQo) {
        return orderService.saveOrder(orderQo);
    }
}
